from apps.pojo.Entity import User
class LoginDao:
    @staticmethod
    def login(username, password):
        return User.query.filter_by(username=username, password=password).first()